package com.wikidot.designpatterns.memento;

/**
 * Memento part. This class represents copy of the state of the originator
 * object.
 */
public class LogRecord {
	/**
	 * Copy of the originator state property.
	 */
	private final Dimension dimension;

	/**
	 * Copy of the originator state property.
	 */
	private final boolean hidden;

	/**
	 * @param dimension
	 *            Visible area of the image.
	 * @param hidded
	 *            Overall visibility of the image.
	 */
	public LogRecord(final Dimension dimension, final boolean hidden) {
		super();
		this.dimension = dimension;
		this.hidden = hidden;
	}

	/**
	 * Provides archived property.
	 */
	public Dimension getDimension() {
		return dimension;
	}

	/**
	 * Provides archived property.
	 */
	public boolean isHidden() {
		return hidden;
	}

	@Override
	public String toString() {
		return dimension + ", " + hidden;
	}
}
